package io.github.wanggit.antrpc.console.web.vo;

import java.io.Serializable;
import java.util.Objects;

public class SubscribeConfigVO implements Serializable {

    private static final long serialVersionUID = 4195998329132848746L;

    private String fullPath;

    private String envName;

    private String spaceName;

    private String hostInfo;

    private String ts;

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof SubscribeConfigVO)) {
            return false;
        }
        SubscribeConfigVO other = (SubscribeConfigVO) obj;
        return Objects.equals(fullPath, other.getFullPath())
                && Objects.equals(envName, other.getEnvName())
                && Objects.equals(spaceName, other.getSpaceName())
                && Objects.equals(hostInfo, other.getHostInfo());
    }

    @Override
    public int hashCode() {
        return fullPath.hashCode()
                + envName.hashCode()
                + spaceName.hashCode()
                + hostInfo.hashCode();
    }

    public String getEnvName() {
        return envName;
    }

    public void setEnvName(String envName) {
        this.envName = envName;
    }

    public String getFullPath() {
        return fullPath;
    }

    public void setFullPath(String fullPath) {
        this.fullPath = fullPath;
    }

    public String getSpaceName() {
        return spaceName;
    }

    public void setSpaceName(String spaceName) {
        this.spaceName = spaceName;
    }

    public String getHostInfo() {
        return hostInfo;
    }

    public void setHostInfo(String hostInfo) {
        this.hostInfo = hostInfo;
    }

    public String getTs() {
        return ts;
    }

    public void setTs(String ts) {
        this.ts = ts;
    }
}
